Creating shadow layer issue

Trying to render out large assembly shadow and when i create the emissive material and make it not visible to camera during the rendering process I end up getting these odd black lines. Just trying to get the actual shadow as a seperate layer. Any ideas whats going on?

in your LIghting settings turn off “Self Shadow” and see if that takes care of it.

I’ll give it a go and see if it works when rendered. I believe I did try and it did not impact live render.